package com.zrrd.learn.chapter01;

/**
 * @author asus
 * @version 1.0
 * @date 2023/8/14 17:46
 */
public class People {

    int age ;
    String phone;



  public void setAge(int age ){
    if(age>= 18 && age <= 50 ){
        this.age=age;
    }
    System.out.println("起码八年");
    this.age=age;
}

    public int getAge(){
        return age;

    }


}
